<layout name='layoutP' />
<title>项目退出</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<load href="__PUBLIC__/Js/Jquery/jquery.form.js" />
<script src="__PUBLIC__/Jqueryui/ui/i18n/jquery.ui.datepicker-zh-CN.js"></script>
<script type="text/javascript" src="__PUBLIC__/Js/jquery.confirm.js"></script>
<script type="text/javascript">

	function messagebox(msg) {
		$("#message-details").html(msg);
		$("#dialog:ui-dialog").dialog("destroy");
		$("#dialog-message").dialog({
			width : 360,
			height : 230,
			buttons : {
				确认 : function() {
					$(this).dialog("close");
				}
			}
		});
	}
	
	$(function() {
		$("#form1").validationEngine();
		 $( "#dialog-message" ).hide();
		 
		$("#myTable tr .normal").click(
				function() {
				
				});

		$( "#date" ).datepicker({
			changeMonth: true,
			changeYear: true
		});
		$("#date").datepicker($.datepicker.regional['zh-CN']);

		$('#form1').ajaxForm({
			success : complete, // post-submit callback
			dataType : 'json'
		});
	
		
		 function complete(data){
	            if (data.status==1){
	            	
	               messagebox(data.info);
	            }else{
	        
	            	 messagebox(data.info);
	            }
		 };
	});
	
</script>

<div id="tabs">
<ul>
	<li><a href="#tabs-1">查看项目退出信息</a></li>
	<li><a href="#tabs-2">添加项目退出信息</a></li>
</ul>
<div id="tabs-1"><present name="list">
<div>
<table id="myTable" class="tablesorter">
	<thead>
		<tr>
			<th style="display: none">idquitinfo</th>
			<th>退出时间</th>
			<th>退出方式</th>
			<th>退出股份</th>
			<th>退出股份占比</th>
			<th>退出价格</th>
			<th>退出金额</th>
			<th>增值比率</th>
		</tr>
	</thead>
	<tbody>
		<volist name="list" id="vo">
		<tr>
			<td class="normal" style="display: none">{$vo['idquitinfo']}</td>
			<td class="normal">{$vo['date']}</td>
			<td class="normal">{$vo['type']}</td>
			<td class="normal">{$vo['stock']}</td>
			<td class="normal">{$vo['percent']}</td>
			<td class="normal">{$vo['price']}</td>
			<td class="normal">{$vo['money']}</td>
			<td class="normal">{$vo['radio']}</td>
		</tr>
		</volist>
	</tbody>
</table>
</div>
<div>{$page1}</div>
<else />
<h2>没有记录</h2>
</present></div>


<div id="tabs-2">
 <div class="form-container" >  
<form id="form1" method='post' action="__URL__/quitinfo_add">
<fieldset><legend>项目退出信息</legend>

            <div><label for="date">退出时间 </label> 
            <input id="date"  type="text" name="date"   />
             </div> 
              <div><label for="type">退出方式</label> 
			<input id="type" class="validate[required] text-input" type="text" name="type"   />
             </div> 
             <div><label for="stock">退出股份</label> 
			<input id="stock" class="validate[required] text-input" type="text" name="stock"   />
             </div> 
<div><label for="percent">退出股份占比</label> 
			<input id="percent" class="validate[required] text-input" type="text" name="percent"   />
             </div> 
<div><label for="price">退出价格</label> 
			<input id="price" class="validate[required] text-input" type="text" name="price"   />
             </div> 
<div><label for="money">退出金额</label> 
			<input id="money" class="validate[required] text-input" type="text" name="money"   />
             </div> 
<div><label for="radio">增值比率</label> 
			<input id="radio" class="validate[required] text-input" type="text" name="radio"   />
             </div> 			 
      
</fieldset>

<div class="buttonrow"><input type="submit" value="提交"
	class="button" /></div>
</form>
<div id="dialog-message" title="发送完成">
<p><span class="ui-icon ui-icon-circle-check"
	style="float: left; margin: 0 7px 50px 0;"></span> <span
	id="message-details"></span></p>
</div>
</div>
</div>
</div>



